Fix a bug that produce a wrong update of ideas