added constant-fixer function