Fixed returned error with missed ptg or ptp for filetransfer
functionality