Deployed code wouldnt work after migration