Fix increment check