fixed bug that caused the <this> value to be null sometimes