Removed an unneeded if statement, fixed and incorrectly placed semicolon