Warnings triggered on median instead of average