fixed an issue which made media unreliable