Trade deficit shrinks for fourth straight month