fixed bug where instance didn't increment correctly