revert stack to 512, no tested enough with lower value.