Finally fixed dihedral with passing tests