fixed generating result element instances