Fix if statement typo when grabbing window width