fix a wp_new bug in wpcmd