fixed bugs in ConstNode