Fixes exploding callstack courtesy of @edobry