Fixes bug in media stream