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