fixed for CRM-12995

----------------------------------------
* CRM-12995:
  http://issues.civicrm.org/jira/browse/CRM-12995
Merge pull request #1218 from kurund/CRM-12995

fixed for CRM-12995