Correct migration that incorrectly used instance variable