Prevent map editor from crashing using a hack