Fix error if no format is defined