Fix center widget becoming visible when not intended