Restrict relative values to be less or equal to 1
Streamline the if, thanks @jasonrclark