Fixed bug in FORTRAN interface