fixes an error when no initial sort column is defined