Fixed a bug for compiling of the gfortran compiler