error fix controller main