code fix in geometry