Removing invalid variable input.