fixed registering task