Changed histogram legend to scale better, fixed parallel query bug