bug fix - prevents core-dumping on scan -format '1'