ported fix from 3.2-master

ported fix from 3.2-master for deegree upstream