fix break in select