Correcting logic of the histogram and adding admin object