fixed problem with character rendering failure