Added ZeroMemory to fix crash