Fixed bad backgroundOffset calculation