fixed argument increment bug