Fix namespace
Fix var name
Fix type
Fix duplication code