fixed over stackcount bug