Fixed cast problem.