Fixed check_range typo