Fixed bug : Migration functions