fix firstCheck in case of recursion