Fixes the issue which the header black when the content view add on click listener.