Fix cast
Fix incorrect variable