what cause error during dealloaction