Fixed bug in update building file