fix issue with args being modified