Fixed the initialization related bug (tile map not initialized when the constructor is called)