fixed widget not adding bug.