fixes issue 682

https://github.com/pagelines/DMS/issues/682