Avoid undefined variable error on region click
Remove trailing whitespace