Fixes recursion