fix media capture