concurency errors fix