Fixed a JIRA 5 bug w.r.t. custom fields