Bugfix in selectFormatType()