fixed error controller