fix bug and wp_reset_query