Fixed allow media first bug