Fix crash after level design mode bug