Fixed bug in toast implementation