added window size fix