fix case where there no more args to shift