Fixed access to null instance in printAndSimplify