Fixed deprecated direct accesssor on context