Have to use this workaround due to win32 dependency