Select semester ID everywhere to prevent undefined index #144