fix bug with cover file uploading