Why are my guards not using the weapon I put on the list?

I want my guards to use the railguns, but for some reason, they are stuck using the basic tactical assault rifle. It is a guard weapon and I did put it attached to the list in the guard spawners.