fixed bug when setting validator min and max values to 0