hanlde empty plugins array or string
fix plugin command