Fixed a bug with detection of assigned systems