Fix for cancelling composer modal.