fix pointed object bug + variable bug