discarding stage bug fix