fix exclusive range checks