Stairs, memory corruption fixes