bug fixes about default value