Fix struct Ptr's constructor