migrate: Fix incorrect variable names