update log with proper name when exists