fixed wrong argument, and added convertoin to bits on GetMemory.