1. fix bug for context null