fix barriers