modify some bug about warning.