fix some codes.