Fix function calls and hid errorlogs for PLY