legend bug fixes, only use first six splits