Fix warning: semicolon gets ignored
Fix warnings: weak variable is accessed multiple times within 1 method