Thanks for the report, this should probably go to the bugs section.
A very similar issue was reported here: Removing items from global queue not working properly if building has both units and technologies in the queue and is currently under investigation by the devs.