try fix undefined error