context setting fix