Fixed flickering issue on cards