fixed a bug in geometry on resync.