fixed null table problem.