Small tweak to setting the cancelled flag