fixed barrier issue