tmp patch for https://github.com/kaltura/server/pull/1234.