Wait no nevermind, I've found the source of those problems.
Sorry for the inconvenience it seem that file_copy function doesn't automatically replace file when name is the same. It should be fix in the next patch soon.
Thank for reporting.