Removes a warning in a sample