Fixed bugs with file upload page