update stack bug