Fixed 'get elemnts until greater than 5'