Fix problem render window  inside another component