So I can only assume that the code you are actually using is different than what you posted as that would have generated a build error as is and with the last ) will work correctly.

Post the code you are actually using and we can look for an issue.