Fixed issue when not passing tile map to layer