castling fix