fix error; text should not be nil