set map type flag fix