fix issue #2 for getXplots