fix barrier