modify some wrong code