Fixed issue with placing barriers