:eq() selector expects a zero-based index

fixes getPanel not finding the last or first panel