Fix bug with loading custom observation fields when several thousand records have been created.