Generate: fixed old public files were not deleted
Fixed model schema bug #302