Handle undefined text