fixed a bug

- fixed an infinite recursion bug