see https://www.drupal.org/node/1234924#comment-9296037