minor bug fix with format recognition.