fix the cat top and transactio last problem bug