fixes on how excel of exported cases is generated