fix error 500, overwrite files