Fix for gen file