Fixed issues with per layer tilesets