Fixed error when not set widgets