fixes bug where an "undefined" sample type is added to the list of sample types