fixed typo in the function_const error message
fix bugs...