fixed table name logical flaw #4