fixed writetext