fixed indeterministic error