fixed bugs in pxdll