Small fix to generation