Reset globals and fix 'not always' condition on frame restart