Bug fix in the activity form