Fixed security issue (issue #2157)