Fixed bug of widget's position