Fix check on text