fixes problem with "next map"