fix undefined warning