This glitch happened today in the second castle. First I used the sleep spell of the bard, then I attacked the archer in the front row. Suddenly, the enemy front row was placed in the back, the fourth soldier from the left was the worst. The health bars stayed where they are, and 1 round later they were repositioned correctly.