fixed so marker can be dragged all the way to the end