fix undefined name