Fix bug in cone and cylinder