Minor bug on msreferencetable edit function