apply patch to core

https://www.drupal.org/node/1102570