Fix for 454243 and fixed the visibility check for a node