Fixing case when retrieving the first element