fixed the --- splitting bug