Fixing the issue with gen folder

gen folder was not deleted before so this commit fix it.