Some units are fixed or locked in place right from the time they appear, like most fortress garrisons. If you add new units to the stack that is locked, then these units will also appear locked in place. Just drag and drop the units without the locked in place icon into their own separate stack. That should unlock them.
I'm the 51st shade of gray. Eat, pray, Charge!