fixed bodyParser middleware to avoid errors/warnings