Modefied for https://acsmine.tok.access-company.com/redmine/issues/12202