ruled surface bug fixes