Fix retrieving and saving builds