fixed selection of empty lines