fixed for CRM-12995

----------------------------------------
* CRM-12995:
  http://issues.civicrm.org/jira/browse/CRM-12995