Fixed annoying issue

strings as factors was making maps not work.