fix for textposition bug