fix table name generation if no namespace is given