Fixed error in widget