Fixed error in counting of users