MaxStack fix