fixed memory probs