Some fixes for projects migrations