Fix for https://webarchive.jira.com/browse/ARI-4024