Fixed a bug in screen sharing api