fix saving widget positions