fixed error with logging addPTX function