fix bug in step calculation with non zero floor

Closes #9