Fixing incorrect cast location