Fix issue of passing NaN as value for offset on CharactersListCtrl.
Fix several cosmetic issues