Fix upload material