Removed unecessary textmanager.  Fixed conflicting min/max definition