Fixes _keep_in_range call