bug fix in activity type form elements