incrementing bug fix