Fixing the get_current_coordinates method