fix crash when regular cubical leaves mode is enabled