Use wp_reset_postdata where necessary