Decomment reset variable after updating foreign key.