respect empty factor levels in target attribute