small fix to entityHeadMatch