Fixed some bugs of constant, define