fixed -m bug (thanks Rob)