fixed wrong default sort column bug
fixed warning