for browser
fix break condition