Fixed a cast