w3 total cache write a brokent url

I’m using w3 total cache, and I have a s3 bucket where I store all my files (wp-includes, wp-content/themes, wp-content/uploads), everything seems to work fine except for the themes directory
for examples, for the includes and uploads file the src or href attributes is written correctly, like:

but for the css and js that comes from themes directory is written like this

notice there is an additional ‘/’ before ‘css’ as if there a directory without name,but when I open the file in new tab without the additional ‘/’ it work and aws bucket return the file.
Any idea why w3 total cache is doing this?