fix attach for redmine 2.3