fix for https://github.com/kaltura/server/issues/1906.
Merge pull request #1990 from jessp01/fix-1906

fix for https://github.com/kaltura/server/issues/1906.