Use correct valid_extension.