File upload bug fixed