fix the mistake return value of plotMA method