BugFix: max should at least 1