Minor bugfixes to fortran_refcard