fixed bugs re: file['map.erb']