controller errors solved