Fixing bug 1211

--HG--
extra : source : 83a853adb2124d1cb9376d84c331f762bb7c84ba