Message middleware fix for admin action bug.