bugfix PTSDK-1415. return value of correct data type