Bug fix set lpCockie NULL