Fixing optimization problems