fixed typo for initwindow

Found typo trying to fix issue #221