Fix for stairs with supports

Tested it and it works for me shouldn't break anything but this is my first time editing code.