Fixed deprecated direct accessor on $context