bugfix, sometimes did endless recursion during initalization