Fix for https://acsmine.tok.access-company.com/redmine/issues/5644#note-22