Handle inactive widgets properly