syntax bug in generated files when using @FetchMode