fix a bug in motion_map initialization