fix undefined text