null-ref exception when typing a space after e.g. myTemplate!()