fixed frame destruction/deallocation