Eagles snap 4-game losing streak