Fixed bug that blocked agents against the walls