fixing broken controller