Fixed a bug for div widget put function