fix old addslash_object call