Fixed rendering issues with focused widgets