fixed reverse iterator issue