fix non-sorted rendering