Not sure why this invalid code worked on windows