fix bug migration