resolved a bug when using non default table name