fix in building device inventory