fixed new() constructor unitialized variable reference