fix bug about constants.