Fixing geometry error