Fixed a bug of bruteforce