fixed level bug