fix dotimes