fixing error in update delegation status api