Adding location to map now works well

Signed-off-by: Yuan Cao <mail@caoyuan.me>