key_commit: Fixed some issues with renewing investments