fixed bug in model specification.