Fix for using task more than one time (IllegalStateException).