fixed a bug when creating a physical count with an invalid file type.