bug in barrier