fixed castle gates with_accesses count