Fixed dirty bit getting written over after swap back in the case of
failure to swap.