fix default value bugs.