Small bugfix.

Carets' position were not saved when project was closed.