bugfix in fortify() method