[fix] pass context with render for proper invocation of after