Children were prescribed the wrong medicine