Fix the context being null.