fix empty end table elements error