Better Fix for undefined parent in $destroy method.