fix copy file in public folder