On the formation of ansae in planetary nebulae