Are you sure that is the case jxvn? The move generation algorithm does not take into account wether or not the move results in a checkmate until the move is made. Could it be that there was a discovered check pinning your attacking piece? In any case I will take a look at the code right now.