Another middleware array fix