0.2.2: error middleware bug fixed