Remove invalid models from script.