more robust deinitialization
fixing js error
fixing js error