Fix register task