fixed some things in how position is remembered