Small bugfix for view always being visible