bug fixes in the mean stack