Fixed bugs in updateHistDataC.m