Prevent various crashes in qsh
Remove odd 'if self:' pattern.