fixed invalid collection / document access