fix bugs in toast service.