Improved local optimization

Problem line 143 in AmeliorationLocal