fix check_cache script bug