fix args being undefined