Murphy was miscast
He was written as an unfunny, one dimensional racist.
Why cast a funny man who usually has a joke ready?
It did not even work as a "cast against expectations" idea.
Lots of better actors for his role.
Or, better choice: make his character at least ironic, if not openly funny.