Fix bug : Add boundary handling in getCurrentItem() .