Cleaned up code

removed duplicate variable assignment, added missing semicolon