Remove invalid environment argument.