fixes #613. fileupload element not working