Instability of erodible beds