I got some compiling problem

My ROMS version is 561. Since there are more than one tidal components included in my tidal forcing file, I am trying to turn on the cpp option: AVERAGES_DETIDE to remove the tidal signal from my output. But I got the following errors when compiling:
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 79)
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 82)
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 85)
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 88)
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 91)
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 94)
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 97)
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 100)
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 103)
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 106)
PGF90-S-0078-Wrong number of subscripts specified for vid (def_tides.f90: 111)
0 inform, 0 warnings, 11 severes, 0 fatal for def_tides
I have already turned on the AVERAGES option before I turn on AVERAGES_DETIDE, I think this should be enough to turn on above option, am I missing something else?
I will really appreciated to any helpful suggestions.