Fixed endless loop situation

caused user to lose control of mouse. now resolved.