Fixed text base and env ptr in basepage