fixed table name logical flaw #2