Fix incorrect widget declaration