Fixed range assert bug

The assertion condition was the opposite, resulting in an error for correct input.