Prevent crash when in context mode