Fix an error in weigert implementation.