TSAGE: Fix CID 1003781, 1002422, 1003171