fixed a bug in the debug memory interface