inc/dec functions did not work properly.