Fixed repeated tasks bug

There is still a bug that causes incorrect ending times.
Merge remote-tracking branch 'origin/master'

Conflicts:
	vns.py