Need fix semestr function