When I use rewind_post() it shows menu items in my loop

I found the problem, this function was causing the problem….

function include_custom_post_types( $query ) {
$custom_post_type = get_query_var( 'post_type' );
    if ( is_archive() ) {
    if ( empty( $custom_post_type ) ) $query->set( 'post_type' , get_post_types() );
}
if ( is_search() ) {
    if ( empty( $custom_post_type ) ) {
        $query->set( 'post_type' , array(
            'post', 'page', 'website_bookmarks'));
    }
}
return $query;
}