barrier bug fix