Fixed a nullpointer exception and modified default coordinate