correct yaxisminmax hook