So, wrapped in `if g.VIEW isnt 'thread'`, it works as expected.