Fixed bug: intermittent data hangs histogram function.