Removed unnecassary code in restoration of queue