Attempt to fix compatibility with windows 8