minor fix to have by default memory factory