Fix enableMedia method