fix two bugs in ptx