Fix for https://github.com/syncloud/redirect/issues/4