remove extra undefined (void 0)