minor fixes to support basic functions without showing markers on map

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