fixed issue with initial coordinate