Turns out it was logic error; helps if you set this-> and not some random variable