Fixed backwards compatibility issue for widgets code.
Fix for extra error messages due to categorisation issues.