bugfix in getPosInArea