Fixed 0 error when logout.