Fix code which threw an error on startup/table creation