fixing issue#421 the wrong } in the code

this pull request fixes the problem described in #421