fixed table name logical flaw #3