after hook should get docs based on original ids instead of selector, fixes #38