fixing an intermittent error