fixed problem with referenced entity objects when saving weapon