Handler for getting bad histogram