Add two missing var declrs and a missing semicolon