fixed controller detection