missing $path argument in sprintf function