Fixing this.render bug