Fixed Stack Number Bug