Fixed unitialized value issue