fix undefined var name