I don't have access to it, but I suspect you can't use it like that. Can you choose %maxima? Otherwise you may have to tediously do maxima(...) each time.