Fix bugs of pc_np_ws_lin_sys.

Do the same jobs as the same as previous commit.