fix described in http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item5127
