get free memory fix