Fixed Bug #7223

http://hercules.ws/board/tracker/issue-7223-homunculus-s-max-level-overshooting/
Signed-off-by: shennetsind <ind@henn.et>