fix media bug