changing reset to wp_reset_postdata

thanks @Tarendai