fixed count error