Fix bug with canceling download