fix empty tile crash