Fixed deprecated get_context() calls