diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/GroupController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/GroupController.java
index 85dbbd339f6e15fe2121d72c0c9708d5d9dcf645..88a6a5741e7b62993215f0792c2baf7f37ef96fc 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/GroupController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/GroupController.java
@@ -18,7 +18,6 @@ import org.springframework.web.bind.annotation.*;
 @RequestMapping("/api/groups")
 public class GroupController {
     private final GroupService groupService;
-    private long groupId;
 
     /**
      * Gets a group by its name
@@ -110,7 +109,6 @@ public class GroupController {
      */
     @PutMapping("/group/{groupId}/changeOpen")
     public ResponseEntity<Boolean> changeOpenValue(@PathVariable("groupId") long groupId) {
-        this.groupId = groupId;
         return groupService.OpenOrCloseGroup(groupId)
                 .map(ResponseEntity::ok)
                 .orElseGet(() -> ResponseEntity.notFound().build());
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/service/group/GroupService.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/service/group/GroupService.java
index 13eb7ba2dd8504d141f2b0ca0e762643a46a56c0..e112370534ef95ecf9c5bd34bdb6030348ff6d36 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/service/group/GroupService.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/service/group/GroupService.java
@@ -116,6 +116,7 @@ public class GroupService {
         if (answer.isPresent()) {
             Group realGroup = answer.get();
             realGroup.setOpen(!realGroup.isOpen());
+            System.out.println(realGroup.isOpen());
             return Optional.of(groupRepository.save(realGroup).isOpen());
         }
         return Optional.empty();