fixes for transposition table logic