fixed bug in perft definition