[minor] added missing semicolon and removed superfluous assignments.