fixed model, seed file bugs

fixed bugs