Fix register_ghost_tables task