Fix the text nil property bug