fixing a bug in description panel auto positioning