Fixed writeText