Fixed a bug when rejected the access lo local media