Fixed task completed bugs