Troubleshooting histogram bugs