fixed bug in hasse diagram