fixing STAIR bug