Fixed out-of-range step bug

Fixing issue #33, bug which caused the server to crash when an
out-of-range step was requested.