Correct topology generation