Hack to fix this.ctx in code we won't need later