How to overcome herding behavior in firms