crashing histogram quick fix