fix error adding toast