fix undefined value warning