fixed toast error