bugfix for stopping before starting