Protect location against unique violation
Fix
Better history usage