Fixed layout size issue of minimap caused by refactoring