### Eclipse Workspace Patch 1.0
#P org.sophie2.main.app.commons
Index: src/main/java/org/sophie2/main/app/commons/book/BookExtrasState.java
===================================================================
--- src/main/java/org/sophie2/main/app/commons/book/BookExtrasState.java	(revision 8460)
+++ src/main/java/org/sophie2/main/app/commons/book/BookExtrasState.java	(working copy)
@@ -92,7 +92,7 @@
 	public BookExtrasState remove(ResourceRefR4 ref) {
 		assert this.knownExtras.contains(ref) : "The specified extra does not exist!";
 		
-		ResourceRefR4 current = ref.equals(this.currentExtra) ? null : ref;
+		ResourceRefR4 current = ref.equals(this.currentExtra) ? null : this.currentExtra;
 		ImmSet<ResourceRefR4> newShownExtras = 
 			this.shownExtras.contains(ref) ? this.shownExtras.remove(ref) : this.shownExtras;
 		return new BookExtrasState(current, this.knownExtras.remove(ref), newShownExtras);

