Fix min/max in form