Fixed histogram functions