Restrict maximum position value