Fix a bug that prevents map module from working

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>