bug fix: double increment