Fixed bug casting skills when typing.