Found the problem :
Assigning 3 view controllers to same custom class, results in errors when you're trying to perform a segue, because the segue with desired identifier is not created from every view controller using that custom class. Using different custom classes would solve the problem.