bug fix for operator++