fixed stack bug and inc version