Random problem with uploading documents