Workaround for pyinstaller bug