Fixed a bug in class ReferencePoint