Fixed bug with req and res mix up.