Fixed bug #36

Fixed the roi not disappearing, but introduced #41