Fixed the bug in the Toaster class