[DEV] correction of virtual and refcounter of objects