fixed bug on reach to maximum nested level in watch function