fixed problem with casting for fill-in-the-blanks