added fix to avoid multiple initialization of UI Media instances