Fix maximum validation syntax to solve heroku bug