fix a bug introduced by the migration