Fixed crashing bug when level was required

But it's hard to test with everything commented in level