fixed defect

window went out of bounds.. corrected.