Fixed error with queue linking