fixed -b flag on select not working