fixed  bug preventing text constraints  from working properly