fix errors with static constants

consts are also static