fixing the wrong } in the code

this pull request fixes the problem described in issue#421