fixed clipping at top and left because of window boundaries