Bugfix on AttachViewer