fixed crash relating to commands being dealloced before being fully processed