Is it generating twice?