fixing bug 1293

--HG--
extra : source : 9c1d1c1219c2b8ec782cc40912ef1952bb16e26e