Corrects active dot when last item is reached

See #189 and #225.