fix assets problem and upload bug