Fix client side minmax behaviour