fixed increment bug