fixed type error on credit add.