Max level bug fix