fix small bug on credit viewer