Fixed a bug that caused crashes when rendering hidden doors