fix controller in gui