Fixing refernces to forms.