Fixed a bug in self-avoiding walk application