fixed references destroy