fixed objectin bad memory