You only need the Advanced Baracks upgrade to open the Sword Dancer Promotion and Squad Size Upgrade so looking at your screenshot everything seems right to me.
Crystal Factory is not needed for those two to open.
Check the green lines (arrows) towards new upgrades closely and you should be able to see what I mean.
I´d say this is not a bug everythings alright.