fix a typo in bigmem - forgot to end if statement