Fix SystemStackError