fixed castle reference