Removed unsafe enum usage from scene layers