Fix a bug of compiling value