FIXES: #461 error on wrong max parameter- fixed