Fix nil values case in first migration