fixed mem debug