fix detecting controller by application