fixed typo in fixLMtps
fixed error in case comp=1 and more than 1 complete config is available
also used is.na instead of (NA %in% ) which also accounts for NaNs