fix undefined