fix errors controller