Fixed execution order indeterminacy bug