fixed bug which broke certain levels