fixed missing variable in set stalled state