fixes random start problem