MacOsX >= 10.8 fixed issue on text widget creation