memory leak fix

fixed an issue where the visual of an object would hang around after the
object is destroyed thus leaking memory