fixed level max value bug