The tank suppose to be establish/cycle before you put the fish in.
Haven't try cycling when there already fry.
Breeding tank always get a cup of old tank water
Then clean water.
Let it sit for about two to three week.
With some plant and snail.
When I'm not so lazy I usually remove the snail when the fish breed.
And introduce the snail back when fry are fry swimming.