Fix args handling in memory plugin