fixed to work with fineuploader