fixed format exception errors