bug fixes in mode_compute=5 and gsa