Fixed sam fetching code