Removed extra ; from if, fixes #2205