Fixed confusing panic for nil geometry