Fixed boot context so that it's not throwing null-pointer.