Fix on pages smaller than windowHeight*2