Select Fix

The Selection part of the plugin was really bad (now it's at least less
bad) so it was redone partially and a fix was implemented (now we ghet
the correct seleciton ids)