fix windows compile
fix enter context