fix building bug