fixed bug in levels support