bug fixes

joi