Fixes warning on text controls