Sum function's issue is resolved.