Fix some codes.