fix js errors on widget move.