fixed terrible maphandler error