bug fixes for first stop and for calls on last point of stops array