Fix bug on xaml dynamic activity loading