fix migration command failing on first migration