fix factory result array