fix pointer bug (this)