Fix for cursor position when a void text is set.