Hack a bug, need a proper fix. See a similar issue: http://drupal.org/node/1783968