Bugfix for stairs program