Fixing case when retrieving the first element
Fixing variable so its never unbounded