Fix typo, which caused implicit .begin is deprecated warning