Revert "fix restrictions for maximum value"

This reverts commit 13f3d8b8d399f674c53d3eac6b45236e382a1227.