fix handling of empty definition string