Fixed mapbender/mapbender#84 (fix from Diego)