make background shift compatible to Windows7