Fix index out of range when selection inverts -> nothing is selectable
#62 fix panels offsets on all major linux desktop envirronement:
  - tested on unity, gnome, kde and cinnamon
  - need to test on Windows 7 and Windows Xp