Fixed mapsize type bug