i don't think it's a bug, it alphabetically selects the techs that are available in the given tech tree, so when you click the tech tree it actually tries to find another, ends up using the same techtree you had before, but just doesn't realise it. So it's automatically Magic - Tech