Remove the check for entityreference.