Fix some insufficient codes.