fixed bug on media hide