I believe the answer is: self-serving bias
self-serving bias refers to the process of adjusting our perception in such a way that would put ourself on a positive light.
self-serving bias is most commonly caused by our needs to maintain self-esteem or being perceive as favorable in some ways by other people in our social group.