Key: fix shadowing warning
Key: fix cast warning