bugfix: mixed up global and local index in unfixing