Fixed bug in geometry preferences saving.