fix prototype Ptr issue