fixed bugs in maphache