Fixed directory problem in map