fixed fib_mem.cpp