fixed inventory copy bug