fix table parsing