fixed remembering the last position