fix scatter plot matrix bug