Fixes hidden widget code