fix minor bug, didn't store map variable