fixes linkedEntity key displacement