Fixed an casting exception