Adjusted get_real_descid()

Behaviour of get_real_descid() is now correct and one can also pass a
negative index to approach from the right side.
Corrected get_real_descid()