Fix positioning of moving window