Small bug fix in increment