apply patch on drupal core - entity bug