fixed bug on publish story where tablename was incorrectly set