KFSUPGRADE-993 : fix a bug