Fix stack button refresh bug