Fixed derefable middleware example.