fixes #1936

https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/1936