fixes bug with building