fix table comparison