Fixed parsing of memory options