modify some incorrect code.