resolved issue where native nonempty usecase threw a null pointer  with a
calc member in the context.