Fixes Widget class typo and code formatting