fixed bug in deserialising points from hash