Fix bugs in range example.

Fix a few typos of `True`, and attempt to convert the incoming value into an int so that the remote range renders properly.