fix rules max and min
updating the minified script