Add missing semicolons and fix equality operator