issue 4526: fix sql error when close RMA, fix wrong logo path when send mail