increment bug fix