fix syntax error in .functions mem()