fixed a memory pointer