fix break loop err