fix for LEFT JOIN
added nil check to data migration