Guarantee deposits and compactness