[Bug 40128] New: Wrong logic in print once