Fixing several bugs in worker
New migration